﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.Data;
using System.Data.SQLite;
using CPUdata;
using WattsUpComponent;
using System.Threading;



namespace data
{
    class storeInDb
    {
       /* [DllImport("C:\\Mosaic\\work1.dll")]
        private static extern int SendKeys(
            IntPtr hWnd,
            string ClassName1,
            string AppName1,
            Int32 Int1);*/

        [DllImport("C:\\Mosaic\\work1.dll")]
        private static extern int performFunctions();

        [DllImport("C:\\Mosaic\\work1.dll")]
        private static extern void runWB();

      

          static void Main(string[] args)
        {
            runWB();
        
         
            while (true)
            {
                int id1 = performFunctions();
                Console.WriteLine("id = " + id1);
                cpuD.cpuFunction(id1);
                Program.mainFunction();
                Thread.Sleep(3000);
                  
            }
        }
    }
}
